package com.spark.check.model

/**
 * 将要执行的task
 * 待接受
 * 待检查
 * 待审阅
 * 待执行
 */
data class ToBeTaskModel(
        var msg: String = "",
        var code: String = "",
        var data: Data = Data()
) {
    data class Data(
            var finishtime: Long = 0,
            var h5url: String = "",
            var creator: String = "",
            var createtime: Long = 0,
            var description: String = "",
            var items: MutableList<Item> = mutableListOf()
    ) {
        data class Item(
                var taskId: Int = 0,
                var projectId: Int = 0,
                var taskcategoryId: String = "",
                var itemId: Int = 0,
                var serialno: String = "",
                var categoryname: String = "",
                var standard: String = "",
                var demand: String = "",
                var score: Int = 0,
                var responsibleId: Int = 0,
                var invited: String = "",
                var rejectremark: String = "",
                var resultscore: String = "",
                var resultremark: String = "",
                var responsibleName: String = "",
                var cooperatorIds: String = "",
                var cooperatorNames: String = "",
                var starttime: String = "",
                var endtime: String = "",
                var state: Boolean = false,
                var root: Boolean = false,
                var categoryname1: String = "",
                var categoryname2: String = "",
                var categoryname3: String = "",
                var systask: Systask = Systask()
        ) {
            data class Systask(
                    var id: Int = 0,
                    var title: String = "",
                    var tasktype: String = "",
                    var description: String = "",
                    var createtime: Long = 0,
                    var creatorId: Int = 0,
                    var state: String = "",
                    var modifytime: String = "",
                    var priority: String = "",
                    var deleted: String = "",
                    var starttime: String = "",
                    var endtime: String = "",
                    var auth: String = "",
                    var creatorName: String = ""
            )
        }
    }
}